//
//  GymManagermentListCell.m
//  YunDongAdmin
//
//  Created by lqq on 2018/9/5.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "GymManagermentListCell.h"

@interface GymManagermentListCell ()
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UIImageView *gymLogo;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIButton *editBtn;
@property (weak, nonatomic) IBOutlet UILabel *mobileLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;

@end

@implementation GymManagermentListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _backView.layer.cornerRadius = 2;
    _backView.layer.masksToBounds = YES;
    _gymLogo.layer.cornerRadius = 5;
    _gymLogo.layer.masksToBounds = YES;
    _editBtn.layer.cornerRadius = 11.5;
    _editBtn.layer.masksToBounds = YES;
    _editBtn.layer.borderWidth = kOnePX;
    _editBtn.layer.borderColor = HEXColor(@"#3AA7FF").CGColor;
}

- (void)refreshCellWithStore:(M_Gym *)store
{
    _nameLabel.text = store.gymName;
    [_gymLogo setNetImageWithUrl:store.gymLogo];
    _mobileLabel.text = [NSString stringWithFormat:@"门店电话：%@",store.gymContactinfo];
    _addressLabel.text = [NSString stringWithFormat:@"门店地址：%@",store.gymAddress];
}

@end
